$def with (privData)
<!DOCTYPE html>
<html>
<head>
$:privData['render'].header(privData)
<link rel="stylesheet" href="$staticUrl('common/editor/style.min.css')" />
<script charset="utf-8" src="$staticUrl('common/kindeditor/kindeditor-all.js')"></script>
<script charset="utf-8" src="$staticUrl('common/kindeditor/lang/zh-CN.js')"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
$:privData['render'].pageheader(privData)
<div class="col-md-12 p5-nav-bar">
    <div class="col-sm-12">
        <a href="$makeUrl('/index')">
            <span class="glyphicon glyphicon-home"></span>
            <span>首页</span>
        </a>&gt;&gt;
        <a href="$makeUrl('/users')"><span>会员列表</span></a>&gt;
        <span>编辑会员</span>
    </div>
</div>
<section class="content">
    <div class="row">
      <div class="has-max">
        <div class="col-md-12 col-lg-12">
            <form action="$makeUrl('/users/modify')" id="useredit" method="post" class="form-horizontal">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        $if privData['TAB'] == 'jiben':
                            <li class="active"><a href="#jiben" data-toggle="tab" aria-expanded="true">基本信息</a></li>
                        $else:
                            <li class=""><a href="#jiben" data-toggle="tab" aria-expanded="false">基本信息</a></li>
                        $if privData['TAB'] == 'guanlian':
                            <li class="active"><a href="#guanlian" data-toggle="tab" aria-expanded="true">关联账号</a></li>
                        $else:
                            <li class=""><a href="#guanlian" data-toggle="tab" aria-expanded="false">关联账号</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane 
                            $if privData['TAB'] == 'jiben':
                                active
                        " id="jiben">
                            <div class="form-group">
                                <label for="role" class="col-md-offset-1 col-md-2 control-label col-lg-1">角色分类:</label>
                                <div class="col-md-7 col-lg-8">
                                    <SELECT  name="role" id="role" class="form-control">
                                        $for item in privData['ROLES_LIST']:
                                        <option value="$:item.id"
                                            $if item.id == privData['USER_INFO'].role.id:
                                                selected="selected"
                                        >$:item.description</option>
                                    </SELECT>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cellphone" class="col-md-offset-1 col-md-2 control-label col-lg-1">手机号:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="cellphone" id="cellphone" type="text" value="$:privData['USER_INFO'].cellphone" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="name" class="col-md-offset-1 col-md-2 control-label col-lg-1">* 用户名:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="name" id="name" type="text" value="$:privData['USER_INFO'].name" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="email" class="col-md-offset-1 col-md-2 control-label col-lg-1">* 邮箱地址:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="email" id="email" type="text" value="$:privData['USER_INFO'].email" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="birthday" class="col-md-offset-1 col-md-2 control-label col-lg-1">*出生年月:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="birthday" id="birthday" type="text" value="$:privData['USER_INFO'].birthday" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="address" class="col-md-offset-1 col-md-2 control-label col-lg-1">* 住址:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="address" id="address" type="text" value="$:privData['USER_INFO'].address" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="gender" class="col-md-offset-1 col-md-2 control-label col-lg-1">性别:</label>
                                <div class="col-md-7 col-lg-8">
                                    $for k,v in privData['GENDER_LIST'].items():
                                    <input type="radio" value="$:k" name="gender" id="gender"
                                        $if k == privData['USER_INFO'].gender:
                                           checked="checked"
                                    >
                                    $:v
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="desc" class="col-md-offset-1 col-md-2 control-label col-lg-1">个性描述:</label>
                                <div class="col-md-7 col-lg-8">
                                    <textarea rows="10" cols="5" name="desc" id="desc" class="form-control">$:privData['USER_INFO'].description</textarea>
                                    <script type="text/javascript">
                                    KindEditor.ready(function(K) {  
                                    window.editor = K.create('#desc', {  
                                    afterBlur: function(){  
                                    this.sync();  
                                    },  
                                    uploadJson : '/upload/kindImage',  
                                    resizeType : 0,  
                                    width: '665px',  
                                    height: '400px',  
                                    items: ['preview', '|', 'undo', 'redo', '|', 'template', 'code', 'cut', 'copy', 'paste',  
                                        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',  
                                        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',  
                                        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',  
                                        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',  
                                        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',   
                                        'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 'anchor', 'link', 'unlink'],
                                        imageUploadJson:'/upload/kindUrls' 
                                         });  
                                    });
                                    </script>
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane
                            $if privData['TAB'] == 'guanlian':
                                active
                        " id="guanlian">
                            <div class="form-group">
                                <label  class="col-md-offset-1 col-md-2 control-label col-lg-1">微信号:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="wx_id" id="wechat" type="text" value="$:privData['USER_INFO'].wx_id" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label  class="col-md-offset-1 col-md-2 control-label col-lg-1">QQ账号:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="qq_id" id="qq" type="text" value="$:privData['USER_INFO'].qq_id" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label  class="col-md-offset-1 col-md-2 control-label col-lg-1">微博账号:</label>
                                <div class="col-md-7 col-lg-8">
                                    <input name="wb_id" id="microblog" type="text" value="$:privData['USER_INFO'].wb_id" class="form-control" />
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-10 col-lg-10">
                                <input name="id" type="hidden" value="$:privData['USER_INFO'].id"/>
                                <button type="submit" name="submit" class="btn btn-info pull-right" id="submits" onmouseover="instance.post();">保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
      </div>
    </div>
</section>
$:privData['render'].foot(privData)
</body>
<script>
    (function(){
        var _j = jQuery.noConflict();
        _j("#useredit").validate({
            rules: {
                cellphone: {
                    minlength:11
                },
                passwd: {
                    minlength: 6
                }
            },
            messages: {
                email: "请输入有效邮箱地址",
                cellphone:
                {
                    minlength: "请输入有效电话号码"
                },
                passwd: {
                    minlength: "密码长度至少6位"
                },
                nickname: {
                    required: "请输入昵称",
                    minlength: "昵称长度至少4位"
                }
            }
        });
    })();
</script>
</html>

